<?php

require_once("main.php");

//print_r($_SESSION);
//exit;

//require_once(DIR_LIB."ShoppingCenter".DIR_SEP."scborder.php");


// Form Processing
//===============================================================================================



// Init Model
//===============================================================================================
//$listOrders = ScbOrder::makeOrders();


// Init VIEW
//===============================================================================================
require_once("templates/scbpage.php");

$page = ScbPage::Instance();

require_once(dirname(__FILE__).DIR_SEP."templates".DIR_SEP."XCart".DIR_SEP."xcart_wrapper.php");
require_once(dirname(__FILE__).DIR_SEP."templates".DIR_SEP."XCart".DIR_SEP."xcart_menu.php");

require_once(dirname(__FILE__).DIR_SEP."templates".DIR_SEP."XCart".DIR_SEP."xcart_settings.php");

$menu = new XCartVerticalMenu();

$page->setTitle("Настройки");
$formModels = new XCartSettings($page);

$wrapper = new XCartWrapper($page);
$wrapper->addMenu($menu->show());
$wrapper->addCentralWdget($formModels->show());

$page->addWidget($wrapper);

$page->show();


// EXIT
//================================================================================================


?>
